package demo4_7;

public abstract class Animal {
    protected String name;
    protected int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    //继承是对共性的抽取 就意味着这里面的成员变量、成员方法都是有共性的，共有的
    public abstract void eat();
}
